package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.pojo.User;
import javax.servlet.http.HttpSession;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/28 14:32
 * @description:
 */
public interface UserService {

  ServerResponse<User> login(String username, String password);

  ServerResponse<User> insert(User user);


  ServerResponse<User> getUser(HttpSession session);


  ServerResponse<User> getUserQuestion(User user);

  ServerResponse<User> check(String str, String type);

  ServerResponse<User> newPassword(String username, String password);



  ServerResponse<User> resetPassword(User user,HttpSession session, String passwordOld, String passwordNew);


  ServerResponse<User> update(User user,HttpSession session);


}
